<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" 
    pageEncoding="utf-8"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">


<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<%@ include file="../header.jsp"%>
	<script type="text/javascript" src="<%=resourceBase%>customJS/baseInfo/itemManagement.js"></script>
	<script type="text/javascript" src="<%=resourceBase%>customJS/common/commonFunc.js"></script>
  </head>
	<body>
		<div id="body-wrapper">
			<!-- Wrapper for the radial gradient background -->

			<!-- sidebar.jsp -->
			<%@ include file="../sidebar.jsp"%>
			<div id="gridContent">
				<!-- Main Content Section with everything -->

				<!-- Page Head -->
				<h2>
					监测项目
				</h2>
				<p id="page-intro">
					对监测项目的管理
				</p>
				<table id="gridTable"></table>
				<div id="gridPager">

				</div>
				<div>
					<button class="right-button02" onclick="openDialog4Adding()">
						添加
					</button>
					<button class="right-button02" onclick="openDialog4Updating()">
						修改
					</button>
					<button class="right-button02" onclick="openDialog4Deleting()">
						删除
					</button>

				</div>
				<div id="consoleDlg">
					<div id="formContainer">
						<form id="consoleForm">
							<table class="formTable">
								<tr>				
									<th>
										<span style="color:red">*</span>监测项目代码:
									</th>
									<td>
										<input type="text" class="textField" id="id" name="id" maxlength="10"
											onkeyup="value=value.replace(/[\W]/g,'') " 
    										onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"/>
									</td>
									<th>
										<span style="color:red">*</span>监测类别：
									</th>
									<td>
										<select class="select" id="MTypeName" name="MTypeName">
											<option value="no">--请选择--</option>
										</select>
									</td>
								</tr>
								<tr>
									<th>
										<span style="color:red">*</span>监测项目名称:
									</th>
									<td>
										<input type="text" class="textField" id="name" name="name" maxlength="10"/>
									</td>
								</tr>
								<tr>
									<th>
										监测项目简称：
									</th>
									<td>
										<input type="text" class="textField" id="abrName" name="abrName" maxlength="5"/>
									</td>
									<th>
										监测项目国际名称：
									</th>
									<td>
										<input type="text" class="textField" id="nationalName" name="nationalName" maxlength="10"/>
									</td>
								</tr>
								<tr>
									<th>
										有效上限值：
									</th>
									<td> 
										<input type="text" class="textField" id="eMaxValue" name="eMaxValue" maxlength="10"
										onkeyup="if(isNaN(value)||isTriDecimal(value, 3))execCommand('undo')" onafterpaste="if(isNaN(value)||isTriDecimal(value, 3))execCommand('undo')" />
									</td>
									<th>
										有效下限值：
									</th>
									<td>
										<input type="text" class="textField" id="eMinValue" name="eMinValue" maxlength="10"
										onkeyup="if(isNaN(value)||isTriDecimal(value, 3))execCommand('undo')" onafterpaste="if(isNaN(value)||isTriDecimal(value, 3))execCommand('undo')"/>
									</td>
								</tr>
								<tr>
									<th>
										超标上限值：
									</th>
									<td>
										<input type="text" class="textField" id="overMaxValue" name="overMaxValue" maxlength="10"
										onkeyup="if(isNaN(value)||isTriDecimal(value, 3))execCommand('undo')" onafterpaste="if(isNaN(value)||isTriDecimal(value, 3))execCommand('undo')"/>
									</td>
									<th>
										超标下限值：
									</th>
									<td>
										<input type="text" class="textField" id="overMinValue" name="overMinValue" maxlength="10"
										onkeyup="if(isNaN(value)||isTriDecimal(value, 3))execCommand('undo')" onafterpaste="if(isNaN(value)||isTriDecimal(value, 3))execCommand('undo')" />
									</td>
								</tr>
								<tr>
									<th>
										测量标准单位：
									</th>
									<td>
										<input type="text" class="textField" id="standUnit" name="standUnit"  maxlength="5" />
									</td>
									<th>
										小数位数：
									</th>
									<td>
										<input type="text" class="textField" id="scale" name="scale" maxlength="1" 
										onkeyup="value=value.replace(/[^\d]/g,'')"
										onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"/>
									</td>
								</tr>
								<tr>
									<th>
										最大量程：
									</th>
									<td>
										<input type="text" class="textField" id="maxRange" name="maxRange" maxlength="10"
										onkeyup="if(isNaN(value)||isTriDecimal(value, 3))execCommand('undo')" onafterpaste="if(isNaN(value)||isTriDecimal(value, 3))execCommand('undo')"/>
									</td>
									<th>
										最小量程：
									</th>
									<td>
										<input type="text" class="textField" id="minRange" name="minRange" maxlength="10"
										onkeyup="if(isNaN(value)||isTriDecimal(value, 3))execCommand('undo')" onafterpaste="if(isNaN(value)||isTriDecimal(value, 3))execCommand('undo')"/>
									</td>
								</tr>
							</table>
						</form>
					</div>
				</div>
			</div>
		</div>
	<script type="text/javascript">$.setCurrentMenu('2_JCXM');</script>
	</body>
</html>
